package com.study.eurekaclienthystrix.feign;

import com.study.eurekaclienthystrix.entity.User;
import org.springframework.stereotype.Component;

/**
 * eureka-client-test 服务降级
 * EurekaClientTestFeign 接口发生异常的处理类
 *
 * @author huang
 */
@Component
public class EurekaClientTestFallback implements EurekaClientTestFeign {

    @Override
    public String get() {
        return "eureka-client-test 服务异常, get...";
    }

    @Override
    public String post(String gender, User user) {
        return "eureka-client-test 服务异常, post...";
    }

}
